package com.android.dblocation

import android.content.Context
import android.os.Binder
import com.camera.routemodule.routeinterface.BDLocationListener

class DBLocationBinder(context: Context?): Binder() {
    private val binderImpl: DBLocationBinderImpl
    init {
        binderImpl = DBLocationCommonBinder()
    }
    fun init(context: Context?) {
        binderImpl.init(context)
    }
    fun startLocation() {
        binderImpl.startLocation()
    }
    fun stopLocation() {
        binderImpl.stopLocation()
    }
    fun addLocationListener(listener: BDLocationListener) {
        binderImpl.addLocationListener(listener)
    }
    fun removeLocationListener(listener: BDLocationListener) {
        binderImpl.removeLocationListener(listener)
    }
    fun getBDLocationListenerSize(): Int{
        return binderImpl.getBDLocationListenerSize()
    }
}